package com.share.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.admin.model.db.Dictionary;
import com.share.admin.model.vo.DictionaryPageReq;
import com.share.common.common.Page;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2022-09-22
 */
public interface IDictionaryService extends IService<Dictionary> {
    Object init();

    Dictionary getByGCodeAndCode(String gCode,String code);

    Dictionary getByCode(String code);

    List<Dictionary> listByGCode(String gCode);

    Map<String,List<Dictionary>> getAllGCode();

    Page pageList(DictionaryPageReq req);
}
